Conditions | 2 |
Total Lines | 7 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { getGlobalStorageProvider } from "./browserApi/storageProvider"; |
||
23 | |||
24 | function resetOptions() { |
||
25 | document.querySelectorAll(OPTION_SELECTOR).forEach(optionElement => { |
||
26 | let optionInputElement = optionElement as HTMLInputElement; |
||
27 | let defaultValue = optionInputElement.dataset.defaultValue === 'true' ? true : false; |
||
28 | |||
29 | optionInputElement.checked = defaultValue; |
||
30 | }); |
||
51 | }); |